package com.atguigu.create.factory.factorymethod.order;

import com.atguigu.create.factory.factorymethod.pizza.*;

public class LdPizzaFactory extends PizzaMethodFactory{
    @Override
    public Pizza createPizza(String orderType) {
        switch (orderType){
            case "cheese":return new LdCheesePizza();
            case "pepper":return new LdPepperPizza();
            default:return null;
        }
    }
}
